{{include file='header.htm' title='用户登录'}}
<style type="text/css">
@import url(css/account.css);
</style>
		<script language="JavaScript" type="text/javascript">
			$(document).ready(function(){
				$("#submit").click(function(){
					login();
					return false;			
					});
				});
function login()
{
$.ajax({
    type: "post",
    url : "index.php?m=user&a=login",
    dataType:'json',
    data: 'username='+$("#username").val()+'&password='+$("#password").val(),
    success: function(json){
					if(json)
			location.href="index.php?m=profile&a=view";
		else
			{
				$.each(json,function(i,n){
					errorreport +=n+'<br />';
					});
					$("#errorMessages").remove();
					$(".SearchTab").before("<div class=\"Problem\" id=\"errorMessages\">用户名或密码错误</div>");
			}
		//alert(json.errorreport);
                          }
           });
}
		</script>
<div id="content"> 
	<div id="heading"> 
		<h1>登录Yupoo</h1> 
		<div class="clear"></div> 
	</div> 
	<div class="clear"></div> 
		<DIV class="Tab SearchTab">
		<UL class=Tabs>
  		<LI class=TabIn id=tab1>登录 </LI>
		</UL>
	</DIV>
	<div> 
		<div id="container"> 
<div class="thin" id="login"> 
	<form action="index.php?m=user&a=login" method="post">
		<dl class="hField"> 
			<dt><label for="user_email">用户名/Email地址</label></dt> 
			<dd><input class="txt email" id="username" name="username" type="text" /></dd> 
		</dl> 
		<dl class="hField"> 
			<dt><label for="user_password">密码</label></dt> 
			<dd><input class="txt" id="password" name="password" size="20" type="password" />  
			</dd> 
		</dl> 
		<dl class="hField"> 
			<input name="submitted" type="hidden" value="submitted">
			<dd><input id="submit" class="Btn" type="submit" value="立即登录" /></dd> 
		</dl> 
	</form>
</div> 
<div class='havedone'> 
	<h3>&raquo; <a href="index.php?m=user&a=register">未注册请这里进入</a></h3> 
	<p> 
		随时随地<br /> 
		与<b>朋友、家人</b><br /> 
		分享照片
	</p>
</div>
		</div> 
		<div class="clear"></div> 
	</div> 
</div>
{{include file='footer.htm'}}